package cn.lizemin.review;

import java.util.*;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Day03 {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
//        List<Integer> list = new ArrayList<>();
//        Day02[] day = {};
//        Queue<>
//        Integer[] arr = {12,233,34,98};

//        Queue<String> queue = new LinkedList<String>();
//        queue. offer("string");
//        System. out. println(queue. poll());
//        System. out. println(queue. remove());
//        System. out. println(queue. size());
        List<String> list = new ArrayList<>();
        list.add("x");
        Collection<String> clist = Collections. unmodifiableCollection(list);
        list.add("z");
//        clist.add("y"); // 运行时此行报错
        System. out. println(list.size());


    }
}
